const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  lintOnSave: false,
  devServer: {
      host: '127.0.0.1',
      port: 10001,
      open: true,
      proxy: {
          // detail: https://cli.vuejs.org/config/#devserver-proxy
          '/api': {
              target: `http://localhost:9999`,
              changeOrigin: true,
              pathRewrite: {
                  '^/api': '/api'
              }
          },
          '/file': {
              target: 'http://localhost:9999',
              changeOrigin: true
          },
          '/profile': {
            target: 'http://localhost:9999',
            changeOrigin: true,
            pathRewrite: {
                '^/profile': '/file'
            }
        }
      },
      client: {
          overlay: false,
      },
      
  },
})
